package cn.hu.org.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.hu.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.swing.*;
import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 
 * </p>
 *
 * @author Hu
 * @since 2022-12-17
 */
@Data
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;
    @NotEmpty
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @NotEmpty
    @Excel(name = "店铺电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间" ,orderNum = "3", width = 30, exportFormat="yyyy-MM-dd", isImportField = "true_st")
    private Date registerTime;
    /**
     * 待审核 审核通过 驳回
     */
    @Excel(name = "店铺状态" ,orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state;
    @NotEmpty
    @Excel(name = "店铺地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    private String logo;
    private Long adminId;
    private Employee admin;
}
